
//后台登录页路由
const express = require( 'express' );
const router = express.Router();

//引入控制器

const indexController=require('../../controllers/admin/indexController')

router.get( '/index', indexController.index );
//后台退出路由，跳转必须要有路由，路由是通过控制器操作具体业务
//跳转业务
//路由 => 控制器 => model => 表单验证找validator，中间件找middleware，界面有问题找views
router.get( '/logout', indexController.logout );

router.get('/welcome',indexController.welcome)

module.exports = router;
